package com.example.dw.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 场次价格表
 * @author system
 * @since 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("session_price")
public class SessionPrice implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 价格ID
     */
    @TableId(value = "priceid", type = IdType.AUTO)
    private Integer priceid;

    /**
     * 场次ID（外键）
     */
    private Integer sessionid;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 票数剩余
     */
    private Integer remaining;

    /**
     * 票类型
     */
    private String ticketType;
} 